This is Task 2 of the Crypto Encryption Lab.